from datetime import datetime
import pytz

# 获取当前时间用于拼接请求url
def get_time():
    now = datetime.utcnow()
    now = now.replace(tzinfo=pytz.utc)
    now_new = now.astimezone(pytz.timezone('Asia/Shanghai'))
    now_new_str =now_new.strftime('%Y-%m%d-%H:%M')
    return now_new_str.split('-')

if __name__ == "__main__":
    print(get_time())